/**
 * LawContractServiceImpl.java
 * @author
 * 作者 屈甲康 
 */
package org.jackysoft.service.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jackysoft.entity.LawContract;
import org.jackysoft.service.AbstractStringIdServiceImpl;
import org.jackysoft.service.LawContractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class LawContractServiceImpl extends AbstractStringIdServiceImpl<LawContract>
implements LawContractService {
    /**
	 * 
	 */
	private static final long serialVersionUID = -4097634062514584050L;
	final static Log logger = LogFactory.getLog(LawContractServiceImpl.class);

	public LawContractServiceImpl(){	   
	    super(LawContract.class);
	}

	@Override
	public void saveUpdate(String id,byte[] data) {
		LawContract bean = this.get(id);
		if(bean==null){
			bean = new LawContract();
		}
		bean.setData(data);
	}	
		
	
}